{include file='admin/header.html'}

<form class="layui-form" action="">
    {if $langs}
    <div class="layui-row layui-col-space10">
        {foreach from="$langs" item="_lang"}
        <div class="layui-col-md3 layui-col-sm4">
            <button type="button"
                class="layui-btn layui-btn-sm {if !in_array($_lang.slug, $lang_slugs) || $_lang.slug=='zh-TW'} layui-btn-disabled{/if} {if in_array($_lang.slug, $has_langs)} layui-btn-primary{/if}"
                {if !in_array($_lang.slug, $lang_slugs) || $_lang.slug=='zh-TW'} disabled="disabled"{/if} data-slug="{$_lang.slug}"
                data-voice="{$_lang.voice}" data-id="{$row.id}" data-row-slug="{$row.slug}"
                lay-active="i18n_jump">{$_lang.name}（{$_lang.title}）</button>
        </div>
        {/foreach}
    </div>
    {/if}
</form>

{include file='admin/inc/form.html'}

{include file='admin/footer.html'}